package com.fanshilz.flower2025.framework.util;

import cn.hutool.core.util.RandomUtil;
import cn.hutool.crypto.digest.DigestUtil;

public class PasswordUtil {

    /**
     * @param loginName 登录名
     * @param salt      加盐
     * @param password  密码
     * @return 加密后的
     */
    public static String generated(String loginName, String salt, String password) {
        return DigestUtil.md5Hex(loginName + salt + password);
    }

    /**
     * @param args a3f46f17d2d024eb65d3893c4d6b5cdc
     */
    public static void main(String[] args) {
//        System.out.println(generated("admin", "111111", "admin"));
        System.out.println("1" + RandomUtil.randomNumbers(5));
    }

}
